package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_consumption_order")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ConsumptionOrderModel {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id; // 主键id
    private String orderId; // 订单号
    private String businessName; // 商家名称
    private Integer businessId; // 商家ID
    private Integer activityId;//活动ID
    private Integer status; // 订单状态（1 待使用, 2 待评价, 3 已完成, 4 已取消）
    private Integer userId; // 用户ID
    private String verificationCode; // 核验码
    private BigDecimal businessIncome; // 商家收益
    private BigDecimal platformIncome; // 平台收益
    private Integer classification; // 活动分类
    private Timestamp createTime; // 创建时间
    private Timestamp updateTime; // 修改时间
    private Integer orderReason; // 取消原因
    private String areaId; // 区域ID
    private Integer cityId; // 城市ID

    @TableField(exist = false)
    private String password;


}
